<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/26
 * Time: 16:50
 */

namespace app\api\validate;


class CountValidate extends BaseValidate
{

    protected $rule = [
        'count'=>'checkCount'
    ];

    public function checkCount($value,$rule='',$data=[],$field=''){
        if(!$this->checkID($value)){
            return false;
        }

        if($value<0||$value>25){
            return 'count数量必须在15-25中间';
        }
    }

}